package com.starlink.model.request;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.starlink.common.PageQueryRequest;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * @author zhanghong
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel("用户请求模型")
public class UserRequest extends PageQueryRequest implements Serializable {
    @ApiModelProperty("推荐人ID")
    private Long recommenderId;
    @ApiModelProperty("姓名")
    private String realName;
    @ApiModelProperty("手机号")
    private String mobile;
    @ApiModelProperty("昵称")
    private String nickName;
    @ApiModelProperty("头像")
    private String avatar;
    @ApiModelProperty("性别 0女 1男")
    private Integer sex;
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty("生日")
    private Date birthday;
    @ApiModelProperty("是否是vip 0否 1是")
    private Integer vip;
    @ApiModelProperty("用户状态 0禁用 1正常")
    private Integer status;
    @Deprecated
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("vip到期日期")
    private Date vipExpireDate;
    @ApiModelProperty("是否支持续费 0：否 1：是")
    private Integer supportRenewal;
    @ApiModelProperty("微信openId")
    private String openId;
    @ApiModelProperty("公众号union_id")
    private String unionId;
    @ApiModelProperty("邀请人id")
    private Long referrerUserId;
}
